<template>
	<view class="invoice">
		<u-gap height="6" bgColor="#F5F5F5"></u-gap>
		<view class="invoice-header">
			<view class="view1">
				<u-icon size="28" name="clock-fill"></u-icon>
				<text>开票中</text>
			</view>
			<view class="view2">
				<text>预计可开发票金额：</text>
				<text>￥288.00</text>
			</view>
		</view>
		<view class="invoice-notice">
			您的发票申请已受理，预计7-10个工作日内发送至您电子邮箱
		</view>
		<view class="invoice-content">
			<view class="steps">
				<u-steps current="1" activeColor="rgba(68, 212, 168, 1)">
					<u-steps-item title="提交申请" desc="">
					</u-steps-item>
					<u-steps-item title="平台处理" desc=""></u-steps-item>
					<u-steps-item title="开票成功" desc=""></u-steps-item>
				</u-steps>
			</view>
			<view class="c3">
				<view class="fontWeight c3Title">
					<text>订单信息</text>
				</view>
				<view class="c3Item c3Font">
					<text>订单编号</text>
					<view class="yhCon">
						<view class="iconfont icon-changyong_huifu">
						</view>
						<text>45856955855235</text>
					</view>
				</view>
				<view class="c3Item c3Font">
					<text>下单时间</text>
					<text>2024-03-06 09:26:35</text>
				</view>
			</view>
		</view>
		<view class="invoice-content">
			<view class="c3" style="margin-top: 0;">
				<view class="fontWeight c3Title">
					<text>订单信息</text>
				</view>
				<view class="c4">
					<view class="c4Left">
						<image src="/static/images/nav-tag-1.png" mode=""></image>
					</view>
					<view class="c4Right">
						<text class="fontWeight c4Title">全身理疗按摩</text>
						<text>上门时间：2025-03-06 09:00</text>
						<text>项目时间：60分钟</text>
						<text>项目价格：￥248.00</text>
					</view>
				</view>
				<view class="c3Item c3Font" style="margin-top: 24rpx;">
					<text>订单编号</text>
					<view class="yhCon">
						<view class="iconfont icon-changyong_huifu">
						</view>
						<text>45856955855235</text>
					</view>
				</view>
				<view class="c3Item c3Font">
					<text>下单时间</text>
					<text>2024-03-06 09:26:35</text>
				</view>
			</view>
		</view>
		<view class="commonBtn" @tap="goto('pages/owns/invoice/invoiceDetail')">
			<view class="btnCon">
				<text>撤销申请</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.fontWeight{
		font-weight: bold;
	}
	
	.invoice {
		position: relative;

		.invoice-header {
			padding: 24rpx 32rpx;
			background: #fff;
			margin: 0 24rpx;
			border-radius: 24rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
			margin-top: 12rpx;

			.view1 {
				display: flex;
				align-items: center;

				text:nth-child(2) {
					margin-left: 12rpx;
					font-size: 32rpx;
					font-weight: 500;
					color: rgba(54, 68, 79, 1);
				}
			}

			.view2 {
				margin-top: 14rpx;

				text:nth-child(1) {
					font-size: 24rpx;
					font-weight: 400;
					color: rgba(94, 103, 110, 1);
				}

				text:nth-child(2) {
					font-size: 28rpx;
					font-weight: 500;
					color: rgba(54, 68, 79, 1);
				}
			}
		}

		.invoice-notice {
			padding: 24rpx 32rpx;
			font-size: 24rpx;
			font-weight: 400;
			color: rgba(94, 103, 110, 1);
		}

		.invoice-content {
			padding: 24rpx 32rpx;
			background: #fff;
			margin: 0 24rpx 24rpx;
			border-radius: 24rpx;

			.steps {
				margin: 24rpx 0 48rpx;
			}

			.c3 {
				border-radius: 24rpx;
				background: rgba(255, 255, 255, 1);
				margin-top: 24rpx;
				font-size: 28rpx;

				.c3Title {
					margin-bottom: 32rpx;
				}

				.c3Item {
					display: flex;
					align-items: center;
					margin-bottom: 17.4rpx;
					justify-content: space-between;

					.yhCon {
						display: flex;
						align-items: center;

						.iconfont {
							margin-left: 8rpx;
							color: rgba(152, 160, 166, 1);
							font-size: 30rpx;
						}
					}

					.yh {
						color: rgba(152, 160, 166, 1);
					}

					.hj {
						color: rgba(255, 140, 64, 1);
						font-size: 32rpx;
						font-weight: 700;
					}
				}

				.c3Item:last-child() {
					margin-bottom: 0
				}

				.dec {
					width: 100%;
				}
			}

			.c3Font {
				font-size: 24rpx;
			}

			.c4 {
				display: flex;
				align-items: center;
				padding:  0 24rpx 24rpx 24rpx;
				border-radius: 24rpx;
				background: rgba(255, 255, 255, 1);
				margin-top: 16rpx;
				font-size: 28rpx;

				.c4Left {
					image {
						width: 166rpx;
						height: 170rpx;
					}
				}

				.c4Right {
					line-height: 45rpx;
					display: flex;
					flex-direction: column;
					font-size: 22rpx;
					margin-left: 16rpx;

					.c4Title {
						font-size: 28rpx;
					}
				}
			}
		}
	}
</style>